<template>
  <span class="undo" v-if="row.result===null">{{rowindex}}: 未完成</span>
  <span class="right" v-else-if="row.result===row.left+row.right">{{rowindex}}: 正确</span>
  <span class="error" v-else>{{rowindex}}: 错误</span>
</template>

<script>
export default {
    props:{
        row:{
            type:Object,
            required:true
        },
        rowindex:{
           type:Number,
            required:true 
        }
    }
};
</script>

<style scoped>
.right {
  color: green;
}
.error {
  color: red;
}
.undo {
  color: #ccc;
}
</style>